package exp01;

/**
 * Created by Administrator on 2022/10/10.String
 * String是不可变的，所以要连接操作要制造N个副本，效率特别低O(n^2)
 */
public class StringDemo {
    public static void main(String[] args) {
        String s = new String();
        for (int i = 1; i <= 1000000; i++) {
            s = (Integer.toString(i));
        }
        System.out.println(s.length());
    }
}
